ELM_CFLAGS = `pkg-config elementary --cflags`
ELM_LIBS = `pkg-config elementary --libs`


all: shr-fi.cpp Network.o NetworkList.o popen_wrapper.o ConnectWindow.o
	$(CXX) $(CXXFLAGS) $(ELM_CFLAGS) $(ELM_LIBS) shr-fi.cpp popen_wrapper.o ConnectWindow.o NetworkList.o Network.o -o shr-fi

popen_wrapper.o: popen_wrapper.cpp
	$(CXX) $(CXXFLAGS) -c -o popen_wrapper.o popen_wrapper.cpp

NetworkList.o: NetworkList.cpp
	$(CXX) $(CXXFLAGS) $(ELM_CFLAGS) -c NetworkList.cpp -o NetworkList.o

ConnectWindow.o: ConnectWindow.cpp
	$(CXX) $(CXXFLAGS) $(ELM_CFLAGS) -c ConnectWindow.cpp -o ConnectWindow.o

Network.o: Network.cpp
	$(CXX) $(CXXFLAGS) $(ELM_CFLAGS) -c Network.cpp -o Network.o

install:
	scp shr-fi root@192.168.0.202:

clean:
	rm *.o *~ shr-fi

